import request from '@/utils/request'


export function storeList(params) {
  return request({
    url: `/store/list`,
    method: 'get',
    params
  })
}



export function storeGoodsAdd(data) {
  return request({
    url: `/store/goods`,
    method: 'post',
    data
  })
}

export function storeGoodsList(params) {
  return request({
    url: `/store/goods/list`,
    method: 'get',
    params
  })
}



export function storeAdd(data) {
  return request({
    url: `/store`,
    method: 'post',
    data
  })
}

export function storeEdit(data) {
  return request({
    url: `/store`,
    method: 'put',
    data
  })
}

export function storeDelete(storeIds) {
  return request({
    url: `/store/${storeIds}`,
    method: 'delete',
  })
}

export function storeGoodsDelete(params) {
  return request({
    url: `/store/goods`,
    method: 'delete',
    params
  })
}
